MUISetIntPropertyΒΆ

MUISetIntProperty, hWin:MUIWND, Property:MUIPROPERTY, PropertyValue:MUIPROPERTYVALUE

Sets a specified property in the internal properties structure. Properties are defined as constants (eg @MyPropertyX EQU 4) and are offsets into the memory location used to store the properties value. See MUIAllocMemProperties for details on allocating memory for properties.

Parameters

  • [in] hWin - handle to the ModernUI control
  • [in] Property - The property to set
  • [in] PropertyValue - The value to set the property to

Return

Returns the previously set property value or NULL

Example

.data
MyString db 'test',0

; Define internal properties
@MyPropertyXcoord EQU 0
@MyPropertyYcoord EQU 4
@MyPropertyString EQU 8
LOCAL dwX:DWORD
LOCAL dwY:DWORD

mov dwX, 1234
Invoke MUISetIntProperty, hMyControl, @MyPropertyXcoord, dwX

mov eax, 5678
Invoke MUISetIntProperty, hMyControl, @MyPropertyYcoord, eax

lea eax, MyString
Invoke MUISetIntProperty, hMyControl, @MyPropertyString, eax

See Also

MUIAllocMemProperties, MUIGetIntProperty, MUIGetExtProperty, MUISetExtProperty